﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NexTrackDesktop.Media;

namespace NexTrackDesktop.ViewModels
{
    /// <summary>
    /// This class extends the SongViewModel to include up/down votes
    /// </summary>
    class QueueItemViewModel : SongViewModel
    {
        private int _netVotes;

        public QueueItemViewModel()
        {
        }

        public QueueItemViewModel(QueueItem item)
        {
            Update(item);
        }

        public void Update(QueueItem item)
        {
            NetVotes = item.NetVotes;
            Song = item.Song;
        }

        public int NetVotes
        {
            get { return _netVotes; }
            private set { _netVotes = value; NotifyPropertyChanged(() => NetVotes); }
        }

    }
}
